<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div {
            width: 100px;
            height: 100px;
        }
        
        .d1 {
            background-color: red;
            /*变换属性-位移*/
            transform: translateX(200px);
            transform: translateY(200px);
            transform: translate(300px, 500px);
        }
    </style>
</head>

<body>
    <div class="d1"></div>
</body>

</html>